package pe.com.bn.sach.domain;

/**
 * Bnchf51VersionExpedienteId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf51VersionExpedienteId implements java.io.Serializable {

	// Fields

	private Bnchf13Expediente bnchf13Expediente;
	private Bnchf41UnidadProc bnchf41UnidadProc;

	// Constructors

	/** default constructor */
	public Bnchf51VersionExpedienteId() {
		
		 bnchf13Expediente=new Bnchf13Expediente();
		 bnchf41UnidadProc=new Bnchf41UnidadProc();		
	}

	/** full constructor */
	public Bnchf51VersionExpedienteId(Bnchf13Expediente bnchf13Expediente,
			Bnchf41UnidadProc bnchf41UnidadProc) {
		this.bnchf13Expediente = bnchf13Expediente;
		this.bnchf41UnidadProc = bnchf41UnidadProc;
	}

	// Property accessors

	public Bnchf13Expediente getBnchf13Expediente() {
		return this.bnchf13Expediente;
	}

	public void setBnchf13Expediente(Bnchf13Expediente bnchf13Expediente) {
		this.bnchf13Expediente = bnchf13Expediente;
	}

	public Bnchf41UnidadProc getBnchf41UnidadProc() {
		return this.bnchf41UnidadProc;
	}

	public void setBnchf41UnidadProc(Bnchf41UnidadProc bnchf41UnidadProc) {
		this.bnchf41UnidadProc = bnchf41UnidadProc;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf51VersionExpedienteId))
			return false;
		Bnchf51VersionExpedienteId castOther = (Bnchf51VersionExpedienteId) other;

		return ((this.getBnchf13Expediente() == castOther
				.getBnchf13Expediente()) || (this.getBnchf13Expediente() != null
				&& castOther.getBnchf13Expediente() != null && this
				.getBnchf13Expediente()
				.equals(castOther.getBnchf13Expediente())))
				&& ((this.getBnchf41UnidadProc() == castOther
						.getBnchf41UnidadProc()) || (this
						.getBnchf41UnidadProc() != null
						&& castOther.getBnchf41UnidadProc() != null && this
						.getBnchf41UnidadProc().equals(
								castOther.getBnchf41UnidadProc())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf13Expediente() == null ? 0 : this
						.getBnchf13Expediente().hashCode());
		result = 37
				* result
				+ (getBnchf41UnidadProc() == null ? 0 : this
						.getBnchf41UnidadProc().hashCode());
		return result;
	}

}